package com.dkm.ec.product.repository;

import com.dkm.base.api.model.Page;
import com.dkm.biz.repository.IRepository;
import com.dkm.ec.product.domain.ProductEntity;
import com.dkm.ec.product.persistence.entity.ProductEntityPo;

import java.util.List;
import java.util.Map;
/**
 * 对象功能:产品（抽象） Repository接口
 * 开发公司:SKG.COM
 * 开发人员:颜超敏
 * 创建时间:2014-12-17 11:30:15
 */
public interface ProductEntityRepository extends IRepository<String, ProductEntityPo,ProductEntity>{
	public ProductEntityPo findByBusinessKey(String businessKey);
	public List<ProductEntityPo> findForSelectorPaged(Map<String, Object> map, Page page); 
	public Integer countForSelector(Map<String, Object> params);
	
	public List<ProductEntityPo> findProdRec(String userId, String productId, Integer count);

	public List<ProductEntityPo> findByShopId(String shopId);
}
